<div id="detailContainer" class="detailContainer" align="center">
    <table style="width: 528px;">
        <tr>
            <td align="left">
                <div id="detail_title" class="detail_title"></div>
            </td>
            <td align="right">
                <?php
                    echo $this->element("toolbar",
                        array("toolIds" => array("addId" => "add_pac", "editId" => "edit_pac", "delId" => "del_pac"))
                    );
                ?>
            </td>
        </tr>
    </table>
	<table class="detailTable" id="detailTable" keyColumn="id" url="pacientes" saveUrl="pacientes/save" tableTitle="Paciente" border="0" align="center" cellpadding=2 cellspacing=2 entityname="Paciente" op="add" editId="">
        <tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="nombre" filterType="string" minLength="3" required="true" align="left" >
			<nobr>Nombre:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
				<input id="nombre" name="nombre" type="text" size="50" />
			</td>
		</tr>
		<tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="apellido" filterType="string" minLength="3" required="true" align="left" >
			<nobr>Apellido:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<input id="apellido" name="apellido" type="text" size="50" /></td>
		</tr>
		<tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="sexo" filterType="string" minLength="1" required="true" align="left" >
			<nobr>Sexo:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<select id="sexo" name="sexo" style="width: 100%">
                <option value="m">Masculino</option>
                <option value="f">Femenino</option>
            </select>
            </td>
		</tr>
		<tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="fecha_nacimiento" filterType="date" minLength="3" required="true" align="left" >
			<nobr>Fecha de Nacimiento:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<input id="fecha_nacimiento" name="fecha_nacimiento" type="text" size="50" /></td>
		</tr>
		<tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="direccion" filterType="string" minLength="3" required="true" align="left" >
			<nobr>Direcci&oacute;n:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<input id="direccion" name="direccion" type="text" size="50" /></td>
		</tr>
		<tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="telefono" filterType="string" minLength="3" required="false" align="left" >
			<nobr>Tel&eacute;fono:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<input id="telefono" name="telefono" type="text" size="50" /></td>
		</tr>
		<tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="mail" filterType="email" minLength="3" required="false" align="left" >
			<nobr>Mail:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<input id="mail" name="mail" type="text" size="50" /></td>
		</tr>
                <tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="mail" filterType="email" minLength="3" required="false" align="left" >
			<nobr>Profesi&oacute;n:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<input id="profesion" name="profesion" type="text" size="50" /></td>
		</tr>
                <tr class="detail-frame" bgColor="#EAEFA5">
			<td class="detail_field" entityname="Paciente" column="derivacion" filterType="string" minLength="3" required="false" align="left" >
                <nobr>Derivaci&oacute;n:&nbsp;&nbsp;&nbsp;</nobr>
			</td>
			<td>
			<input id="derivacion" name="derivacion" type="text" size="50" /></td>
		</tr>
		<tr>
			<td colspan="2"><div id="errorMessage"></div></td>
		</tr>
		<tr >
			<td colspan="2" align="right">
		<br />
			<!--<input type="button" name="sbtcancel" id="sbtcancel" value="Cancelar" class="standar-button" onclick="window.parent.$('#detail').dialog( 'close' );" > -->
			<input type="button" name="sbtguardar" id="sbtguardar" value="Guardar" class="standar-button" >
		</td>
		</tr>
	</table>
</div>